//
// Created by 郝羽 on 2018/5/23.
//

#ifndef RTC_XSWITCH2_REMOTE_ADDRESS_HPP
#define RTC_XSWITCH2_REMOTE_ADDRESS_HPP

#include <functional>
#include <netinet/in.h>

struct remote_address_list;

remote_address_list* remote_address_list_new();

void remote_address_list_del(remote_address_list*);

void remote_address_list_update(remote_address_list*, sockaddr_in sa);

void remote_address_list_handle_timeout(remote_address_list*, int64_t);

void remote_address_list_each(remote_address_list*, std::function<void(sockaddr_in)>);

#endif //RTC_XSWITCH2_REMOTE_ADDRESS_HPP
